Skip to main content

Login

Connect to the broker, only once this function has returned successfully can any other operations be performed.

Request to be POSTed to uri : /NorenWClientTP/QuickAuth

Request Details :

Parameter NamePossible valueDescription
jData*Should send json object with fields in below list
Json FieldsPossible valueDescription
apkversion*Application version.
uid*User Id of the login user
pwd*Sha256 of the user entered password.
factor2*DOB or PAN as entered by the user. (DOB should be in DD-MM-YYYY)
vc*Vendor code provided by noren team, along with connection URLs
appkey*Sha256 of uid | vendor_key
imei*Send mac if users logs in for desktop, imei is from mobile
addldivinfOptional field, Value must be in below format:
ipaddrOptional field
sourceAPI

Example

    curl https://apitest.kambala.co.in/NorenWClientTP/QuickAuth \
-d "jData={ \"apkversion\": \"1.0.0\", \"uid\": \"VIDYA\", \"pwd\": \"s3cur3Id\", \"factor2\": \"31-08-2017\", \"imei\": \"134243434\", \"source\": \"API\"}“

Response Details :

Json FieldsPossible valueDescription
statOk or Not_OkLogin Success Or failure status
susertokenIt will be present only on login success. This data to be sent in subsequent requests in jKey field and web socket connection while connecting.
lastaccesstimeIt will be present only on login success.
spasswordresetY [If emsg is “Password Expired” or “Change Password” and stat is Not_Ok ]If Y Mandatory password reset to be enforced. Otherwise the field will be absent.
exarrJson array of strings with enabled exchange names
unameUser name
prarrJson array of Product Obj with enabled products, as defined below.
actidAccount id
emailEmail Id
brknameBroker id
uidUserId
brnchidRegion
emsgThis will be present only if Login fails.
dmsgDisplay message, (will be present only in case of success).

Sample Success Response :

{
"request_time": "20:18:47 19-05-2020",
"stat": "Ok",
"susertoken": "3b97f4c67762259a9ded6dbd7bfafe2787e662b3870422ddd343a59895f423a0",
"lastaccesstime": "1589899727"
}

Sample Failure Response :

{
"request_time": "20:32:14 19-05-2020",
"stat": "Not_Ok",
"emsg": "Invalid Input : Wrong Password"
}

Error Message list:

MessageDescription
"Invalid Input : Missing jData"Common error message of any of the API (dev issue)
“Invalid Input : Request data is missing.”Common error message of any of the API (dev issue)
"Invalid Input : jData is not valid json object"Common error message of any of the API (dev issue)
"Invalid Input : {<Mandatory field name 1>} {or <Mandatory field name n>}... is Missing." Example:Common error message of any of the API (dev issue)
"Invalid Input : One or more input parameters are not in string format"Common error message of any of the API (dev issue)
"Invalid Input : Invalid App Key"API enablement configuration issue (dev/deploy issue)
"Invalid Input : Invalid Vendor code"API enablement configuration issue (dev/deploy issue)
“Invalid Input : Latest app available, please update”Version blocked at API server level
"Invalid Input : Wrong PAN/DOB"
"Invalid Input : Wrong Password"
"Invalid Input : Invalid User"
"Invalid Input : Deactivated"
"Invalid Input : Version blocked: Please download latest version"Version blocked in OMS level
"Invalid Input : User Blocked due to multiple wrong attempts"
"Invalid Input : User Not enabled on : WEB" Or "Invalid Input : User Not enabled on : ---"Depending on custom access type configured in the system message will change
"Error Occurred : 1 "unknown request"" Or “Server Timeout : ”OMS is down and Web server only up, (EOD/BOD time)
"Invalid Input : Invalid Access Type"API server instance is not configured to handle input access type. (Mismatch in API URL)
"Invalid Input : Password Expired"Password expired after configured number of days, Redirect to Change password screen.
"Invalid Input : Change Password"If password reset by admin/system, Redirect to Change password screen.